#pragma once

//CLIENT AREA=============================

#define MAIN_WIDTH               684
#define MAIN_HEIGHT              449 

#define MAIN_COLOR               RGB(241, 246, 252)

//TAB CONTROL=============================

#define TAB_WIDTH                84
#define TAB_HEIGHT               24

#define TAB_INERVAL              10

#define TAB_RECT_LEFT            298
#define TAB_RECT_TOP             46
#define TAB_RECT_RIGHT           (TAB_RECT_LEFT + (TAB_WIDTH + TAB_INERVAL) * 4)
#define TAB_RECT_BOTTOM          (TAB_RECT_TOP + TAB_HEIGHT)

#define TAB_RECT_RCD_LEFT            298
#define TAB_RECT_RCD_TOP             46
#define TAB_RECT_RCD_RIGHT           (TAB_RECT_RCD_LEFT + TAB_WIDTH)
#define TAB_RECT_RCD_BOTTOM          (TAB_RECT_TOP + TAB_HEIGHT)

#define TAB_RECT_RMB_LEFT            (TAB_RECT_RCD_LEFT + TAB_WIDTH + TAB_INERVAL)
#define TAB_RECT_RMB_TOP             46
#define TAB_RECT_RMB_RIGHT           (TAB_RECT_RMB_LEFT + TAB_WIDTH)
#define TAB_RECT_RMB_BOTTOM          (TAB_RECT_TOP + TAB_HEIGHT)

#define TAB_RECT_LIB_LEFT            (TAB_RECT_RMB_LEFT + TAB_WIDTH + TAB_INERVAL)
#define TAB_RECT_LIB_TOP             46
#define TAB_RECT_LIB_RIGHT           (TAB_RECT_LIB_LEFT + TAB_WIDTH)
#define TAB_RECT_LIB_BOTTOM          (TAB_RECT_TOP + TAB_HEIGHT)

//WND====================================

#define WND_RECT_TOP             76

//RECORD=================================

#define RCD_EDIT_WIDTH           500
#define RCD_EDIT_HEIGHT          70

#define RCD_MEM_RECT_LEFT        100
#define RCD_MEM_RECT_TOP         34
#define RCD_MEM_RECT_RIGHT       (RCD_MEM_RECT_LEFT + RCD_EDIT_WIDTH)
#define RCD_MEM_RECT_BOTTOM      (RCD_MEM_RECT_TOP + RCD_EDIT_HEIGHT)

#define RCD_DES_RECT_LEFT        100
#define RCD_DES_RECT_TOP         138
#define RCD_DES_RECT_RIGHT       (RCD_DES_RECT_LEFT + RCD_EDIT_WIDTH)
#define RCD_DES_RECT_BOTTOM      (RCD_DES_RECT_TOP + RCD_EDIT_HEIGHT)

#define RCD_TAG_WIDTH            500
#define RCD_TAG_HEIGHT           30

#define RCD_TAG_RECT_LEFT        100
#define RCD_TAG_RECT_TOP         240
#define RCD_TAG_RECT_RIGHT       (RCD_TAG_RECT_LEFT + RCD_TAG_WIDTH)
#define RCD_TAG_RECT_BOTTOM      (RCD_TAG_RECT_TOP + RCD_TAG_HEIGHT)

#define RCD_BTN_WIDTH            181
#define RCD_BTN_HEIGHT           39

#define RCD_BTN_RECT_LEFT        246
#define RCD_BTN_RECT_TOP         308
#define RCD_BTN_RECT_RIGHT       (RCD_BTN_RECT_LEFT + RCD_BTN_WIDTH)
#define RCD_BTN_RECT_BOTTOM      (RCD_BTN_RECT_TOP + RCD_BTN_HEIGHT)

//REMEMBER===============================

#define RMB_TAG_WIDTH            500
#define RMB_TAG_HEIGHT           30

#define RMB_TAG_RECT_LEFT        87
#define RMB_TAG_RECT_TOP         24
#define RMB_TAG_RECT_RIGHT       (RMB_TAG_RECT_LEFT + RMB_TAG_WIDTH)
#define RMB_TAG_RECT_BOTTOM      (RMB_TAG_RECT_TOP + RMB_TAG_HEIGHT)

#define RMB_HINT_WIDTH         250
#define RMB_HINT_HEIGHT        20

#define RMB_HINT_RECT_LEFT     381
#define RMB_HINT_RECT_TOP      65
#define RMB_HINT_RECT_RIGHT    (RMB_HINT_RECT_LEFT + RMB_HINT_WIDTH)
#define RMB_HINT_RECT_BOTTOM   (RMB_HINT_RECT_TOP + RMB_HINT_HEIGHT)

#define RMB_WORD_WIDTH           550
#define RMB_WORD_HEIGHT          218

#define RMB_WORD_RECT_LEFT       68
#define RMB_WORD_RECT_TOP        92
#define RMB_WORD_RECT_RIGHT      (RMB_WORD_RECT_LEFT + RMB_WORD_WIDTH)
#define RMB_WORD_RECT_BOTTOM     (RMB_WORD_RECT_TOP + RMB_WORD_HEIGHT)

#define RMB_BNR_WIDTH            75
#define RMB_BNR_HEIGHT           29

#define RMB_BNR_RECT_LEFT        150
#define RMB_BNR_RECT_TOP         309
#define RMB_BNR_RECT_RIGHT       (RMB_BNR_RECT_LEFT + RMB_BNR_WIDTH)
#define RMB_BNR_RECT_BOTTOM      (RMB_BNR_RECT_TOP + RMB_BNR_HEIGHT)

#define RMB_BNF_WIDTH            75
#define RMB_BNF_HEIGHT           29

#define RMB_BNF_RECT_LEFT        306
#define RMB_BNF_RECT_TOP         309
#define RMB_BNF_RECT_RIGHT       (RMB_BNF_RECT_LEFT + RMB_BNF_WIDTH)
#define RMB_BNF_RECT_BOTTOM      (RMB_BNF_RECT_TOP + RMB_BNF_HEIGHT)

#define RMB_BNN_WIDTH            75
#define RMB_BNN_HEIGHT           29

#define RMB_BNN_RECT_LEFT        459
#define RMB_BNN_RECT_TOP         309
#define RMB_BNN_RECT_RIGHT       (RMB_BNN_RECT_LEFT + RMB_BNN_WIDTH)
#define RMB_BNN_RECT_BOTTOM      (RMB_BNN_RECT_TOP + RMB_BNN_HEIGHT)

#define RMB_NORMAL_WIDTH            458
#define RMB_NORMAL_HEIGHT           80

#define RMB_NORMAL_RECT_LEFT        127
#define RMB_NORMAL_RECT_TOP         105
#define RMB_NORMAL_RECT_RIGHT       (RMB_NORMAL_RECT_LEFT + RMB_NORMAL_WIDTH)
#define RMB_NORMAL_RECT_BOTTOM      (RMB_NORMAL_RECT_TOP + RMB_NORMAL_HEIGHT)

//LIB====================================

#define LIB_SCH_BG_WIDTH         195
#define LIB_SCH_BG_HEIGHT        36

#define LIB_SCH_WIDTH            144
#define LIB_SCH_HEIGHT           20

#define LIB_SCH_RECT_LEFT        8
#define LIB_SCH_RECT_TOP         7
#define LIB_SCH_RECT_RIGHT       (LIB_SCH_RECT_LEFT + LIB_SCH_WIDTH)
#define LIB_SCH_RECT_BOTTOM      (LIB_SCH_RECT_TOP + LIB_SCH_HEIGHT)

#define LIB_ADD_WIDTH            25
#define LIB_ADD_HEIGHT           25

#define LIB_ADD_RECT_LEFT        160
#define LIB_ADD_RECT_TOP         7
#define LIB_ADD_RECT_RIGHT       (LIB_ADD_RECT_LEFT + LIB_ADD_WIDTH)
#define LIB_ADD_RECT_BOTTOM      (LIB_ADD_RECT_TOP + LIB_ADD_HEIGHT)

#define LIB_TL_WIDTH            195
#define LIB_TL_HEIGHT           337

#define LIB_TL_ITEM_WIDTH            195
#define LIB_TL_ITEM_HEIGHT           35

#define LIB_TL_RECT_LEFT        0
#define LIB_TL_RECT_TOP         36
#define LIB_TL_RECT_RIGHT       (LIB_TL_RECT_LEFT + LIB_TL_WIDTH)
#define LIB_TL_RECT_BOTTOM      (LIB_TL_RECT_TOP + LIB_TL_HEIGHT)

#define LIB_WL_WIDTH            489
#define LIB_WL_HEIGHT           373

#define LIB_WL_RECT_LEFT        195
#define LIB_WL_RECT_TOP         0
#define LIB_WL_RECT_RIGHT       (LIB_WL_RECT_LEFT + LIB_WL_WIDTH)
#define LIB_WL_RECT_BOTTOM      (LIB_WL_RECT_TOP + LIB_WL_HEIGHT)